import request from '@/utils/request'

// 查询火车餐信息列表
export function listMeal(query) {
  return request({
    url: '/boot/meal/list',
    method: 'get',
    params: query
  })
}

// 查询火车餐信息详细
export function getMeal(mealId) {
  return request({
    url: '/boot/meal/' + mealId,
    method: 'get'
  })
}

// 新增火车餐信息
export function addMeal(data) {
  return request({
    url: '/boot/meal',
    method: 'post',
    data: data
  })
}

// 修改火车餐信息
export function updateMeal(data) {
  return request({
    url: '/boot/meal',
    method: 'put',
    data: data
  })
}

// 删除火车餐信息
export function delMeal(mealId) {
  return request({
    url: '/boot/meal/' + mealId,
    method: 'delete'
  })
}

// 获取火车餐信息下拉选项列表
export function getMealOptions() {
  return request({
    url: '/boot/meal/options',
    method: 'get'
  })
}
